<html> <head> <title>Module: ..\controls\djbutton</title> </head> <body bgcolor="#ffffff">
<p><i><a href="index.html">Table of Contents</a></i></p>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
  <tr>
    <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Module: ..\controls\djbutton</font> </th>
    <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">djbutton.py</font> </th>
  </tr>
  <tr>
  <td>
  
  <table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> methods&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#__init__">__init__</a><br><a href="#call">call</a><br><a href="#_lookupCustomProperties">_lookupCustomProperties</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="__init__"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">__init__&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>__init__( parent, strLabel='', fnCallback=None, **options)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="call"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">call&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>call()</pre>
			Call the callback associated with the button.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_lookupCustomProperties"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_lookupCustomProperties&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_lookupCustomProperties( bSet, strAttribute, value=None)</pre>
	
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> properties&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#activebgcolor">activebgcolor</a><br><a href="#activecolor">activecolor</a><br><a href="#alignment">alignment</a><br><a href="#anchor">anchor</a><br><a href="#bgcolor">bgcolor</a><br><a href="#borderstyle">borderstyle</a><br><a href="#borderwidth">borderwidth</a><br><a href="#color">color</a><br><a href="#defaultstyle">defaultstyle</a><br><a href="#enabled">enabled</a><br><a href="#font">font</a><br><a href="#height">height</a><br><a href="#icon">icon</a><br><a href="#onclick">onclick</a><br><a href="#text">text</a><br><a href="#width">width</a><br><a href="#wrapwidth">wrapwidth</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="activebgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">activebgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color of the button when the button is active. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="activecolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">activecolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Foreground color of the button when the button is active. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="alignment"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">alignment&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set alignment of text when there are multiple lines. One of 'left','right','center'.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="anchor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">anchor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set where in the button the text (or image) should be located. Use one of n, ne, e, se, s, sw, w, nw, or center. Default is center.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="bgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">bgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color of the button. RGB triplet, such as (255,0,0) for pure red.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderstyle"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderstyle&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Border style. One of 'sunken','raised','groove','ridge','flat'. Default is 'raised'. Set to 'sunken' and it will appear pressed.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderwidth"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderwidth&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Integer, defaults to 1 or 2.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="color"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">color&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Foreground color of the button, to use for text. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="defaultstyle"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">defaultstyle&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set to True to draw a border indicating this is the default button.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="enabled"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">enabled&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	True or False. If False, the button is disabled.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="font"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">font&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set font of button text. Standard tkinter font format, such as ('Times New Roman', 12, 'normal')
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="height"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">height&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Integer, where one unit is the height of a line of text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="icon"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">icon&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Use syntax "btn.icon = image" or "btn.icon = (image, 'center')". Use one of 'center','left','right','top','bottom','no_label'. If display is 'no_label', then only the icon is shown, creating a bitmap button.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="onclick"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">onclick&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Function. Command that is called upon click.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Text of the button. Note that the & character will be converted into an alt-key.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="width"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">width&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Integer, where one unit is the width of a char.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="wrapwidth"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">wrapwidth&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set when a button's text should be wrapped into multiple lines, in screen units. Default is 0 (no wrapping).
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> functions&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#_boolToState">_boolToState</a><br><a href="#_boolTodefault">_boolTodefault</a><br><a href="#_compoundToString">_compoundToString</a><br><a href="#_defaultToBool">_defaultToBool</a><br><a href="#_stateToBool">_stateToBool</a><br><a href="#_stringToCompound">_stringToCompound</a><br><a href="#_stringToCompoundDict">_stringToCompoundDict</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_boolToState"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_boolToState&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_boolToState(b)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_boolTodefault"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_boolTodefault&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_boolTodefault(b)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_compoundToString"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_compoundToString&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_compoundToString(value): return djcontrolutil.dictInverse(_stringToCompoundDict())[value]</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_defaultToBool"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_defaultToBool&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_defaultToBool(state)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_stateToBool"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_stateToBool&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_stateToBool(state)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_stringToCompound"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_stringToCompound&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_stringToCompound(value): return _stringToCompoundDict()[value]</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_stringToCompoundDict"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_stringToCompoundDict&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_stringToCompoundDict(): return {'no_label':NONE,'center':CENTER,'bottom':BOTTOM,'left':LEFT,'right':RIGHT,'top':TOP}</pre>
	
        </font></td></tr></table>  </td>   </tr>
  
</table>
<hr>
<p><i><a href="index.html">Table of Contents</a></i></p>
<font size="-2"><i>This document was automatically generated on 2008-02-29 23:29:05.479000 by something that looks like HappyDoc but isn't really.</font>
</body> </html> 